#include "PlayerMgr.h"

PlayerMgr *PlayerMgr::m_gPlayerMgr = 0;

PlayerMgr::PlayerMgr()
{
	m_MyUserIdx = 0;
	memset(m_MyName,0,sizeof(m_MyName));
	memset(m_MyPassOgi,0,sizeof(m_MyPassOgi));
	memset(m_MyPassMD5,0,sizeof(m_MyPassMD5));
	memset(m_MyNickName,0,sizeof(m_MyNickName));
	memset(m_MyTablePassOgi,0,sizeof(m_MyTablePassOgi));
	memset(m_szMySignature, 0, sizeof(m_szMySignature));
	memset(m_szMyFavorite, 0, sizeof(m_szMyFavorite));
	memset(m_szMyExplain, 0, sizeof(m_szMyExplain));
	memset(m_MyEditInviter,0,sizeof(m_MyEditInviter));

	m_MyLevel=0;
	m_MyTableIdx = -1;
	m_MySeatIdx = -1;
	_myUserIdentity=0;
	_myIdentityTactics=0;
	m_bAllowChangeToHall = true;
	m_MyCofferMoney = 0l;
	_mySelfIsGuest = false;
	m_bNoEnoughChip = false;
	m_bQuickLoginFromHall = false;
	m_bLeaveRoomByMySelf = false;
	
	m_MyDiamond = 0LL;
	m_MyGold = 0LL;
	m_MyLottery = 0LL;
	m_MyColorBall = 0LL;
	m_MyOxygen = 0LL;

	RetGameHall = 0;
	GamePage = "";
}

PlayerMgr::~PlayerMgr()
{
	this->Release();
}

void PlayerMgr::clearPlayers()
{
	for (int i=0;i<GAME_PLAYER_COUNT;i++)
	{
		memset(&m_Players[i],0,sizeof(m_Players[i]));
	}
}
